package leetcode.biweekly.week80;

import leetcode.helper.H;

public class Solution3Test extends H {

	public void debug4(Solution3 so) {
		H.compare(false	, so.matchReplacement("llllllllllllllllllllllllllllllllrllllllllllllllllllllllllllllllllrllllllllllllllllllllllllllllllllrllllllllllllllllllllllllllllllllrllllllllllllllllllllllllllllllllrllllllllllllllllllllllllllllllllrllllllllllllllllllllllllllllllllrllllllllllllllllllllllllllllllllrllllllllllllllllllllllllllllllllrlllllllllllllllllllllllllllllllll", 
				"lllllllllllllllllllllllllllllllll",
				H.str2array5("[[\"l\",\"a\"],[\"l\",\"b\"],[\"l\",\"c\"],[\"l\",\"d\"],[\"l\",\"e\"],[\"l\",\"f\"],[\"l\",\"g\"],[\"l\",\"h\"],[\"l\",\"i\"],[\"l\",\"j\"],[\"l\",\"k\"],[\"l\",\"m\"],[\"l\",\"n\"],[\"l\",\"o\"],[\"l\",\"p\"],[\"l\",\"q\"],[\"l\",\"s\"],[\"l\",\"t\"],[\"l\",\"u\"],[\"l\",\"v\"],[\"l\",\"w\"],[\"l\",\"x\"],[\"l\",\"y\"],[\"l\",\"z\"],[\"l\",\"0\"],[\"l\",\"1\"],[\"l\",\"2\"],[\"l\",\"3\"],[\"l\",\"4\"],[\"l\",\"5\"],[\"l\",\"6\"],[\"l\",\"7\"],[\"l\",\"8\"],[\"l\",\"9\"],[\"r\",\"a\"],[\"r\",\"b\"],[\"r\",\"c\"],[\"r\",\"d\"],[\"r\",\"e\"],[\"r\",\"f\"],[\"r\",\"g\"],[\"r\",\"h\"],[\"r\",\"i\"],[\"r\",\"j\"],[\"r\",\"k\"],[\"r\",\"m\"],[\"r\",\"n\"],[\"r\",\"o\"],[\"r\",\"p\"],[\"r\",\"q\"],[\"r\",\"s\"],[\"r\",\"t\"],[\"r\",\"u\"],[\"r\",\"v\"],[\"r\",\"w\"],[\"r\",\"x\"],[\"r\",\"y\"],[\"r\",\"z\"],[\"r\",\"0\"],[\"r\",\"1\"],[\"r\",\"2\"],[\"r\",\"3\"],[\"r\",\"4\"],[\"r\",\"5\"],[\"r\",\"6\"],[\"r\",\"7\"],[\"r\",\"8\"],[\"r\",\"9\"]]")));
		H.compare(false	, so.matchReplacement("fooleetbar", "f00l", H.str2array5("[[\"o\",\"0\"]]")));
		H.compare(true	, so.matchReplacement("fool3e7bar", "leet", H.str2array5("[[\"e\",\"3\"],[\"t\",\"7\"],[\"t\",\"8\"]]")));
		H.compare(true	, so.matchReplacement("Fool33tbaR", "leetd", H.str2array5("[[\"e\",\"3\"],[\"t\",\"7\"],[\"t\",\"8\"],[\"d\",\"b\"],[\"p\",\"b\"]]")));
	}

	public void debug3(Solution3 so) {
//		H.compare(so, so);
	}

	public void debug2(Solution3 so) {
//		H.compare(so, so);
	}

	public void debug1(Solution3 so) {
//		H.compare(so, so);
	}

	public static void main(String[] args) {
		Solution3Test test = new Solution3Test();
		Solution3 so = new Solution3();
		test.debug1(so);
		test.debug2(so);
		test.debug3(so);
		test.debug4(so);
	}

}
